﻿using Max.PH4_2104A.Shopping.ThreeFrame.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4_2104A.Shopping.ThreeFrame.DAL
{
    public class CategoryDAL
    {
        MyDbContext _context;

        public CategoryDAL(MyDbContext context)
        {
            _context = context;
        }

        /// <summary>
        /// 查询所有分类
        /// </summary>
        /// <returns></returns>
        public IQueryable<CategoryModel> GetAll()
        {
            return _context.Categories;
        }
    }
}
